

/*
 
   +--------------+
A7 |1    +--+   24| VCC
A6 |2           23| A8
A5 |3           22| A9
A4 |4           21| /WE
A3 |5           20| /OE
A2 |6           19| A10
A1 |7    5516   18| /CE
A0 |8           17| D7
D0 |9           16| D6
D1 |10          15| D5
D2 |11          14| D4
GND |12          13| D3
    +--------------+
 
 */


var module = {
name: "SRAM2K",
description: "SRAM 2048 x 8-bit",
    
pins : [
    [24, 'vcc'    ],
    [23, 'a8'   ],
    [22, 'a9'   ],
    [21, '/we'    ],
    [20, '/oe'    ],
    [19, 'a10'   ],
    [18, 'cs'    ],
    [17, 'd7'   ],
    [16, 'd6'   ],
    [15, 'd5'   ],
    [14, 'd4'   ],
    [13, 'd3'  ],

    [ 1, 'a7'   ],
    [ 2, 'a6'   ],
    [ 3, 'a5'   ],
    [ 4, 'a4'    ],
    [ 5, 'a3'  ],
    [ 6, 'a2'  ],
    [ 7, 'a1'    ],
    [ 8, 'a0'    ],
    [ 9, 'd0'   ],
    [10, 'd1'   ],
    [11, 'd2'  ],
    [12, 'vss'    ],
],
    
    
memory : {
    "ram" : 2048,
},

nodenames:
{
    vcc: 1,
    vss: 2,
    'func<ram>':3,
    
    '/oe':4,
    '/we':5,
    cs:6,
    gate:7,

    a0:10,
    a1:11,
    a2:12,
    a3:13,
    a4:14,
    a5:15,
    a6:16,
    a7:17,
    a8:18,
    a9:19,
    a10:20,

    d0:30,
    d1:31,
    d2:32,
    d3:33,
    d4:34,
    d5:35,
    d6:36,
    d7:37,
    
    _d0:40,
    _d1:41,
    _d2:42,
    _d3:43,
    _d4:44,
    _d5:45,
    _d6:46,
    _d7:47,
},

segdefs :
[
    [7,'+',0],
],

    
transdefs:
[
    ['t00',6,7,2],
//    ['t00',4,7,2],
 
    ['t00',7,40,30],
    ['t00',7,41,31],
    ['t00',7,42,32],
    ['t00',7,43,33],
    ['t00',7,44,34],
    ['t00',7,45,35],
    ['t00',7,46,36],
    ['t00',7,47,37],
]


    
};
